﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.daowen.uibuilder.*,com.daowen.bll.*"%>
<%@ page import="com.daowen.entity.*,com.daowen.dal.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>景点</title>
	<link rel="stylesheet"
		href="<%=SystemParam.getSiteRoot()%>/e/css/index.css" type="text/css"></link>
	<link rel="stylesheet"
		href="<%=SystemParam.getSiteRoot()%>/e/css/box.all.css" type="text/css"></link>
	<script
		src="<%=SystemParam.getSiteRoot()%>/webui/jquery/jquery-1.8.3.min.js"
		type="text/javascript"></script>
	<script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script>

	
	
<link rel="stylesheet" href="<%=SystemParam.getSiteRoot()%>/e/css/leaveword.css" type="text/css"></link>
	
	<%
		String id = request.getParameter("id");
		if (id != null) {
			Jingdian jingdian = (Jingdian) DALBase.load("jingdian",
					"where id=" + id);
			if (jingdian != null)
				request.setAttribute("jingdian", jingdian);
		}
	%>

</head>
<body>
	<jsp:include page="head.jsp"></jsp:include>
	<input type="hidden" id="commentresurl" value="/e/jingdianinfo.jsp?id=<%=id%>">
	<div class="fn-clear"></div>
	<div class="row-flow">
		<div class="wrap round-block">
			<table cellpadding="0" cellspacing="1" class="grid" width="100%">
				<tr>
					
					<td>
					     <div class="info">
					          <h1>
					              ${requestScope.jingdian.title}
					              
					          </h1>
					          <h5>旅游城市:${requestScope.jingdian.city}
					               
					          </h5>
					          <iframe name="weather_inc" src="http://i.tianqi.com/index.php?c=code&id=2&num=3" width="440" height="70" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
					          
					     </div>
					
					</td>
				</tr>
				
			
				<tr>
					
					<td colspan="4">${requestScope.jingdian.des}</td>
				</tr>
				
				
			</table>
			
	
	  <div style="width:100%;height:550px;border:#ccc solid 1px;" id="dituContent">
	  
	  </div>
	  
	  
			 <jsp:include page="comment.jsp">
			    <jsp:param value="commenttype" name="jingdian"/>
			 </jsp:include>
		</div>
	</div>
	<div class="fn-clear"></div>
	<jsp:include page="bottom.jsp"></jsp:include>
	
	
 <script type="text/javascript">
    //创建和初始化地图函数：
    function initMap(){
        createMap();//创建地图
        setMapEvent();//设置地图事件
        addMapControl();//向地图添加控件
    }
    
    //创建地图函数：
    function createMap(){
        var map = new BMap.Map("dituContent");//在百度地图容器中创建一个地图
        var point = new BMap.Point(112.595166,40.219289);//定义一个中心点坐标
        map.centerAndZoom(point,7);//设定地图的中心点和坐标并将地图显示在地图容器中
        window.map = map;//将map变量存储在全局
    }
    
    //地图事件设置函数：
    function setMapEvent(){
        map.enableDragging();//启用地图拖拽事件，默认启用(可不写)
        map.enableScrollWheelZoom();//启用地图滚轮放大缩小
        map.enableDoubleClickZoom();//启用鼠标双击放大，默认启用(可不写)
        map.enableKeyboard();//启用键盘上下左右键移动地图
    }
    
    //地图控件添加函数：
    function addMapControl(){
        //向地图中添加缩放控件
	var ctrl_nav = new BMap.NavigationControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_LARGE});
	map.addControl(ctrl_nav);
        //向地图中添加缩略图控件
	var ctrl_ove = new BMap.OverviewMapControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,isOpen:1});
	map.addControl(ctrl_ove);
        //向地图中添加比例尺控件
	var ctrl_sca = new BMap.ScaleControl({anchor:BMAP_ANCHOR_BOTTOM_LEFT});
	map.addControl(ctrl_sca);
    }
    
    
    initMap();//创建和初始化地图
</script>
	
</body>
</html>
